﻿using System;

namespace Boggle {

    /// <summary>
    /// Location (row, col) of a game tile.
    /// <BR>
    /// Author: David I. Schwartz (dis@mail.rit.edu)
    /// <BR>
    /// </summary>
    public class GridLocation {

        private int row; // current row
        private int col; // current column

        /// <summary>
        /// Access the current row/
        /// </summary>
        public int Row {
            get { return row; }
            set { row = value; }
        }

        /// <summary>
        /// Access the current column.
        /// </summary>
        public int Col {
            get { return col; }
            set { col = value; }
        }

        /// <summary>
        /// Create a grid location object.
        /// </summary>
        /// <param name="row">current row</param>
        /// <param name="col">current column</param>
        public GridLocation(int row, int col) {
            this.row = row;
            this.col = col;
        }

    } // class GridLocation

} // namespace HSD2_HW3
